Method BuildSelectClause<TProps>(QueryContext<TProps>, IReadOnlyDictionary<string, FieldInfo>, SqlParameterCollector, IReadOnlySet<string>?, string)

Assembly: redb.Postgres.Pro.dll

Generates SELECT clause with DISTINCT ON support.
Returns (selectClause, distinctOnExpression) for synchronization with ORDER BY.

public (string SelectClause, string? DistinctOnExpr) BuildSelectClause<TProps>(QueryContext<TProps> context, IReadOnlyDictionary<string, FieldInfo> fields, SqlParameterCollector collector, IReadOnlySet<string>? cteFieldNames = null, string cteAlias = "pvt_cte") where TProps : class, new()